Skip to content

TPT-4596: NAT Service for VPC - #762

Open
ezilber-akamai wants to merge 8 commits into
devfrom
proj/nat-service-for-vpc
Open

ezilber-akamai wants to merge 8 commits into
devfrom
proj/nat-service-for-vpc

Conversation

@ezilber-akamai

Copy link
Copy Markdown
Contributor

📝 Description

Added support for new NAT Gateway endpoints and related integration tests.

✔️ How to Test

make test-unit
make test-int TEST_ARGS="-k nat_gateway"

ezilber-akamai and others added 5 commits September 18, 2026 09:06
* Added support for NAT Gateway

* Fix lint

* Address CoPilot suggestions

* Added doc links

* Address CoPilot fixes

* Address more CoPilot suggestions
* Add int tests for networking NAT Gateway endpoints

* Add int tests for VPC subnet with NAT Gateway

* Remove condition for NAT gateway deletion

* Refactor NAT Gateway integration tests

* Clean up

* Add fixture for Reserved IP created in the NAT Gateway region

* Add test for NAT Gateway and Reserved IP in diff regions
@ezilber-akamai
ezilber-akamai requested a review from a team as a code owner November 24, 2026 15:13
@ezilber-akamai ezilber-akamai added the project for new projects in the changelog. label Nov 24, 2026
@ezilber-akamai
ezilber-akamai requested a review from a team as a code owner November 24, 2026 15:13
@ezilber-akamai
ezilber-akamai requested review from mawilk90 and n0vabyte and removed request for a team November 24, 2026 15:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The integration test leaves a directly created reserved IP undeleted after the expected assignment failure, leaking billable resources and consuming account quota on every successful run.

1 open issue
What changed in this PR

Adds NAT Gateway support to the Linode Python SDK, extending networking operations and VPC subnet and interface models.

Changes:

  • Adds gateway management, address assignments, interface listing, pricing types, and account settings.
  • Supports subnet gateway attachment and detachment while preserving explicit null values.
  • Adds unit fixtures, serialization checks, and live integration coverage.
File Description
test/​unit/​objects/​vpc_test.py Tests subnet gateway attachment, detachment, and serialization.
test/​unit/​objects/​networking_test.py Tests gateway models and resource operations.
test/​unit/​objects/​linode_interface_test.py Checks interface gateway metadata.
test/​unit/​groups/​vpc_test.py Tests gateway options during VPC creation.
test/​unit/​groups/​networking_test.py Tests gateway collection, creation, types, and settings.
test/​integration/​models/​vpc/​test_vpc.py Tests creating a gateway-linked subnet.
test/​integration/​models/​networking/​test_networking.py Adds live gateway and address-assignment tests.
test/​integration/​conftest.py Adds gateway and same-region VPC fixtures.
test/​fixtures/​vpcs_123456_subnets.json Adds gateway metadata to subnet listings.
test/​fixtures/​vpcs_123456_subnets_790.json Adds a subnet without a gateway.
test/​fixtures/​vpcs_123456_subnets_789.json Adds attached gateway details.
test/​fixtures/​networking_natgateways.json Adds a gateway collection response.
test/​fixtures/​networking_natgateways_types.json Adds gateway pricing data.
test/​fixtures/​networking_natgateways_settings.json Adds gateway limits and settings.
test/​fixtures/​networking_natgateways_42_interfaces.json Adds gateway interface responses.
test/​fixtures/​networking_natgateways_42_addresses.json Adds address-assignment listing data.
test/​fixtures/​networking_natgateways_42_addresses_203.0.113.42.json Adds a single address-assignment response.
test/​fixtures/​networking_natgateways_42_addresses_203.0.113.42_interfaces.json Adds address-specific interface data.
test/​fixtures/​linode_instances_124_upgrade-interfaces.json Adds gateway details to interface upgrade data.
test/​fixtures/​linode_instances_124_interfaces.json Adds gateway details to interface listings.
test/​fixtures/​linode_instances_124_interfaces_456.json Adds gateway details to a single interface.
linode_api4/​objects/​vpc.py Adds subnet gateway models and creation options.
linode_api4/​objects/​networking.py Adds gateway models and resource operations.
linode_api4/​objects/​linode_interfaces.py Models gateway metadata on VPC interfaces.
linode_api4/​groups/​vpc.py Preserves explicit gateway null values during creation.
linode_api4/​groups/​networking.py Exposes gateway creation, listing, types, and settings.

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project for new projects in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants